package com.gimi.cloud.jimi.dao.dao.userInfo;

import com.gimi.cloud.jimi.dao.dao.sys.BaseDao;
import com.gimi.cloud.jimi.dao.myMapper.MyMapper;
import com.gimi.cloud.jimi.dto.userInfo.RdMiguanDTO;
import com.gimi.cloud.jimi.entity.userInfo.RdMiguan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RdMiguanLogDao extends MyMapper<RdMiguan>, BaseDao<RdMiguan, RdMiguanDTO> {

    @Select("select * from rd_miguan_log where user_id= #{userId} and des=1 ORDER BY response_date desc limit 1 ")
    public RdMiguan findIsUpload(Integer userId);
}
